public class Test {
    public static void main(String[] args) {
        //掌握抽象类的好处
        //更好的支持了多态

        Animal a = new Cat();
        a.setName("小花");
        a.cry();


        Animal b = new Dog();
        b.setName("小黑");
        b.cry();
    }
}
